//
//  WBPopOverView.h
//  pop_test
//
//  Created by tuhui－03 on 16/5/19.
//  Copyright © 2016年 tuhui－03. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreGraphics/CoreGraphics.h>

typedef NS_ENUM(NSUInteger,WBArrowDirection){

    //箭头位置
    
    WBArrowDirectionLeft1=1,//左上
    WBArrowDirectionLeft2 = 2,//左中
    WBArrowDirectionLeft3 = 3,//左下
    WBArrowDirectionRight1 = 4,//右上
    WBArrowDirectionRight2 = 5,//右中
    WBArrowDirectionRight3 = 6,//右下
    WBArrowDirectionUp1 = 7,//上左
    WBArrowDirectionUp2 = 8,//上中
    WBArrowDirectionUp3 = 9,//上右
    WBArrowDirectionDown1 = 10,//下左
    WBArrowDirectionDown2 = 11,//下中
    WBArrowDirectionDown3 = 12,//下右

};

@interface WBPopOverView : UIView
@property (nonatomic, strong) UIView *backView;

-(instancetype)initWithOrigin:(CGPoint)origin Width:(CGFloat)width Height:(float)height Direction:(WBArrowDirection)direction;//初始化

-(void)popView;//弹出视图
-(void)dismiss;//隐藏视图

@end
